package com.bw.shop.adapter

import com.bumptech.glide.Glide
import com.bw.shop.R
import com.bw.shop.entity.ZCDCEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class ZCDCAdapter: BaseQuickAdapter<ZCDCEntity, BaseViewHolder>(R.layout.item_cddc) {
    override fun convert(
        holder: BaseViewHolder,
        item: ZCDCEntity
    ) {
        holder.setText(R.id.name,item.name)
        holder.setText(R.id.des,item.des)
        holder.setText(R.id.price,item.price)
        holder.setText(R.id.salve,item.salve)
        Glide.with(context).load(item.icon).into(holder.getView(R.id.icon))
    }
}